import os

def startSleep():
    os.system("powercfg -h on")
    os.system("powercfg  /a")

def closeSleep():
    os.system("powercfg -h off")
    os.system("powercfg  /a")